Fix the dependency graph with root pkg cycles
authorAlex Crichton <alex@alexcrichton.com>
Wed, 24 Sep 2014 05:12:01 +0000 (22:12 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 3 Oct 2014 01:38:15 +0000 (18:38 -0700)
commitdd48f06e4f43f808776907c229f7ed2c411d30a1
tree10d9ba22ae531ad72b65d70e0d52ed306f61b57b
parent15e2076e871b88be9b6fff02d1acb605ad9fb365
Fix the dependency graph with root pkg cycles

If the root package ended up depending on itself through some development
dependency (technically not a cycle), then the resolve phase would currently
overwrite some previous result, destroying the progress. By registering the root
package as seen early on this prevents the overwriting from happening and
instead appending happens.
src/cargo/core/resolver.rs